<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta content="width=device-width,user-scalable=no"name="viewport">
<title>我的二维码</title>
<link rel="stylesheet" type="text/css" href="{:C('WEB_URL')}Public/customer/css/base.css" />
<link rel="stylesheet" type="text/css" href="{:C('WEB_URL')}Public/customer/css/style.css" />
<link rel="stylesheet" type="text/css" href=".{:C('WEB_URL')}Public/customer/css/bootstrap.min.css" />
<script type="text/javascript" charset="UTF-8" src="{:C('WEB_URL')}Public/customer/js/jquery-2.1.4.min.js"></script>
<script type="text/javascript" charset="UTF-8" src="{:C('WEB_URL')}Public/customer/js/bootstrap.min.js"></script>
<script type="text/javascript" charset="UTF-8" src="{:C('WEB_URL')}Public/customer/js/script.js"></script>

</head>
<body>
<div id="box">

 <div class="erweimas">
  <!--<h3><span class="glyphicon glyphicon-menu-left"></span></h3>-->
  <div class="erweis">
   <p>NO.{$data['user_id']}</p>
   <h1><img src="{:C('WEB_URL')}{$data['erwei']}" id="but" /></h1>
   <!--<h5><img src="{:C('WEB_URL')}Public/customer/images/erwei_03.jpg" />点我刷新试试</h5>-->
   <div id="scrollDiv">
   <div class="scrollText">
    <ul style="margin-top: 0px; ">
     <li id="reflash">点我刷新试试</li>
  	 <li>刷新时间2017-04-11</li>  
    </ul>
   </div>
   <div class="up"><img src="{:C('WEB_URL')}Public/customer/images/erwei_03.jpg" /></div>
  </div>
   <p class="use">到店出示给服务员即可使用</p>
  </div>
 </div><!--erweima-->
 <div class="navbar navbar-default navbar-fixed-bottom">
   <footer id="foot">
    <dl>
     <dt><a href="{:U('index')}"><img src="{:C('WEB_URL')}Public/customer/images/home.png" /></a></dt>
     <dd><a href="{:U('index')}" class="current">首页</a></dd>
    </dl>
    <dl>
     <dt><a href="http://www.nleaves.com/qinqin/wechat/user/recommends?uid={$_SESSION[user_id]}"><img src="{:C('WEB_URL')}Public/customer/images/mores_17.jpg" /></a></dt>
     <dd><a href="http://www.nleaves.com/qinqin/wechat/user/recommends?uid={$_SESSION[user_id]}">推荐有奖</a></dd>
    </dl>
    <dl>
     <dt><a href="{:U('more')}"><img src="{:C('WEB_URL')}Public/customer/images/home-03.jpg" /></a></dt>
     <dd><a href="{:U('more')}">更多</a></dd>
    </dl>
   </footer>
  </div><!--/navbar-->
</div><!--box-->
<!--会员卡续费成功弹出页面 -->
 <!--<div id="popup"><a href="javascript:;" class="a_click">
  <div id="click_div">
   <div id="dialog">
	<h3><img src="{:C('WEB_URL')}Public/customer/images/paysuc_03.jpg" /></h3>
	<h4>恭喜,顾客已成功享受本次优惠！</h4>
  </div>
 </div></a>
</div>-->
 <!--会员卡续费成功弹出页面 End-->
 <script type="text/javascript">
 //微信判断header是否显示
if(isWeiXin()){ 
//alert("====");
$(".title").hide();
} 
else{
//alert("+++++");
}	
 //会员卡续费成功弹出页面 JS
$("#but").click(function(){
	$("#click_div").show();
//	setTimeout(function () {
//    $("#click_div").fadeIn();
//  }, 500);
})  
$(".a_click").click(function(){
	$("#click_div").hide();
//	setTimeout(function () {
//    $("#click_div").fadeOut();
//  }, 500);
});

//文字上下滚动
$(document).ready(function(){
    $("#scrollDiv").textSlider({line:1,speed:500,timer:3000});
});
//文字上下滚动End


$('#foot dl').on("touchstart",function(){
  // alert(1);
  $('#foot dl').css("background-color","#fff")
  $(this).css("background-color","#ddd")
})
$('#foot dl').on("touchend",function(){
  // alert(1);
  $('#foot dl').css("background-color","#fff")

})


function demo(){
    $.ajax({
    type:"post",
    url:"index_ajax",
    async:false,
    success: function(data){
     
      if(data['status']==1){
        location.href = "http://www.nleaves.com/qinqin/wechat/user/wypj/uid/"+data['uid']+"/sid/"+data['bid']+"/cid/"+data['cid'];
      //   alert("http://www.nleaves.com/qinqin/wechat/user/wypj/uid/"+data['uid']+"/sid/"+data['bid']);
      }
      if(data['status']==2){
         // alert("http://www.nleaves.com/qinqin/wechat/user/wypj/uid/"+data['uid']+"/sid/"+data['bid']);
        // alert(1);exit;
        location.href = "http://www.nleaves.com/qinqin/wechat/user/yhbz";
        // window.location="http://www.nleaves.com/qinqin/wechat/user/yhbz"
      }
    }
  })
  }
demo();

//is_reflash=false;
var sh;sh=setInterval(demo,800);

$("#reflash").click(function(){
  location.reload();
})
</script>
</body>
</html>
